package com.test.code;

import lombok.Getter;

@Getter
public enum BusinessErrorCode implements IErrorCode {
    PLEASE_UPLOAD_FILES_AS_REQUIRED("3014","请按规定上传文件")
    , FILE_UPLOAD_FAILED("3015","文件上传失败" ),
    ACTIVITY_TYPE_DOES_NOT_EXIST("3001","活动种类不存在" ),
    ACTIVITY_ID_CANNOT_BE_EMPTY("3002", "活动id不能为空"),
    ACTIVITY_ID_DOES_NOT_EXIST("3003","活动id不存在"),
    ACTIVITY_TYPE_ALREADY_EXISTS("3004", "活动种类已存在"),
    ACTIVITY_TYPE_ID_CANNOT_BE_EMPTY("3005","活动类型id不能为空"),
    ACTIVITY_IS_ONGOING_AND_CANNOT_BE_DELETED("3006","活动正在进行无法删除"),
    ACTIVITY_INFORMATION_EXISTS_IN_THE_ACTIVITY_TYPE("3007","活动类型中存在活动信息无法删除" ),
    VERIFICATION_CODE_CANNOT_BE_EMPTY("3008","验证码不能为空" ),
    VERIFICATION_CODE_INVALID("3009","验证码错误" ),
    WRONG_USERNAME_OR_PASSWORD("3010","用户名或密码错误" ),
    USER_IS_NOT_LOGGED_IN("401", "用户未登录"),
    TOKEN_IS_INVALID("401","令牌已失效，请重新登录"),
    ALREADY_COMMENTED("3011","你已经评论过了，请勿重复评论！"),
    ALREADY_REGISTERED("3012","你已经报名过了，不要重复报名！"),
    EVENT_HAS_ENDED("3013","活动已经结束，可以看看其他活动！" ),
    REGISTRATION_IS_FULL("3014","报名人数已满" );

    private String code;
    private String errorMsg;

    BusinessErrorCode(String code, String errorMsg) {
        this.code = code;
        this.errorMsg = errorMsg;
    }
}
